package com.firmiana.jt809.service;

import java.util.concurrent.CompletableFuture;

/**
 * @author hucl
 * @date 2020/8/25 14:00
 */
public interface BaseService {

    void start(Listener listener);

    void stop(Listener listener);

    boolean syncStart();

    boolean syncStop();

    void init();

    boolean isRunning();

    void reconnect();

    boolean sendMessage(Object msg);

    CompletableFuture<Boolean> start();

    CompletableFuture<Boolean> stop();
}
